/*
 *  DBStatement.h
 *  ObjectivePQ
 *
 *  Created by Ian and Sadie Michell on 31/01/2009.
 *  Copyright 2009 Ian Michell. All rights reserved.
 *
 */
#import "DBResultSet.h"
#import "DBConnection.h"

@protocol DBStatement

//==============================================================================
// Query Methods
//==============================================================================
- (bool) execute;

//==============================================================================
// Results Methods
//==============================================================================
- (id <DBResultSet>) getResultSet;
- (int) getAffectedRows;

//==============================================================================
// Message Methods
//==============================================================================
- (NSString*) getErrorMessage;

//==============================================================================
// Getter and Setter Methods
//==============================================================================
- (void) setQuery: (NSString*) sql;
- (NSString*) getQuery;

//==============================================================================
// Other Methods
//==============================================================================
- (void) close;


@end

